<?php
class TDataTableVagasContratar extends TDataTable
{
    public function __construct($criterio = array(), $options = array())
    {   
        $model = new ViewVagasAContratar();
        $key = 'vagaid';
		
        if (!$options) {
		  $options = array('checkColumn' => FALSE, 'radioColumn' => TRUE, 'editHeader'=> FALSE);
        }			
		
		parent::__construct($model,$key,$criterio,$options);
		
		$this->addColumnsData(array(
		                            'vagaid',
									'contratoid', 
									array('name'=> 'numeroorgao','header'=>'NUMERO DO ORGAO'), 
									'orgao',
									'cargo',
									'lotacao',
									'salario')
							 );
							 
		 $this->addFiltersCombo(array(
			'contratoid', 
			'orgao', 
			'cargo', 
		    'lotacao'));
    }
}